home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / tcsh / dist / tc.decls.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-21  |  7.9 KB  |  255 lines

  1. /* $Header: /home/hyperion/mu/christos/src/sys/tcsh-6.01/RCS/tc.decls.h,v 3.10 1991/12/14 20:45:46 christos Exp $ */
  2. /*
  3.  * tc.decls.h: Function declarations from all the tcsh modules
  4.  */
  5. /*-
  6.  * Copyright (c) 1980, 1991 The Regents of the University of California.
  7.  * All rights reserved.
  8.  *
  9.  * Redistribution and use in source and binary forms, with or without
  10.  * modification, are permitted provided that the following conditions
  11.  * are met:
  12.  * 1. Redistributions of source code must retain the above copyright
  13.  *    notice, this list of conditions and the following disclaimer.
  14.  * 2. Redistributions in binary form must reproduce the above copyright
  15.  *    notice, this list of conditions and the following disclaimer in the
  16.  *    documentation and/or other materials provided with the distribution.
  17.  * 3. All advertising materials mentioning features or use of this software
  18.  *    must display the following acknowledgement:
  19.  *    This product includes software developed by the University of
  20.  *    California, Berkeley and its contributors.
  21.  * 4. Neither the name of the University nor the names of its contributors
  22.  *    may be used to endorse or promote products derived from this software
  23.  *    without specific prior written permission.
  24.  *
  25.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  26.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  27.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  28.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  29.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  30.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  31.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  32.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  33.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  34.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  35.  * SUCH DAMAGE.
  36.  */
  37. #ifndef _h_tc_decls
  38. #define _h_tc_decls
  39.  
  40. /*
  41.  * tc.alloc.c
  42.  */
  43. #ifndef SYSMALLOC
  44. extern    void          free        __P((ptr_t));
  45. extern    memalign_t      malloc    __P((size_t));
  46. extern    memalign_t      realloc    __P((ptr_t, size_t));
  47. extern    memalign_t      calloc    __P((size_t, size_t));
  48.  
  49. #else /* SYSMALLOC */
  50. extern    void          Free        __P((ptr_t));
  51. extern    memalign_t      Malloc    __P((size_t));
  52. extern    memalign_t      Realloc    __P((ptr_t, size_t));
  53. extern    memalign_t      Calloc    __P((size_t, size_t));
  54. #endif /* SYSMALLOC */
  55. extern    void          showall    __P((Char **, struct command *));
  56.  
  57. /*
  58.  * tc.bind.c
  59.  */
  60. extern    void          dobindkey    __P((Char **, struct command *));
  61. extern    int          parseescape    __P((Char **));
  62. extern    unsigned char    *unparsestring    __P((Char *, unsigned char *, Char *));
  63. extern    void          dobind    __P((Char **, struct command *));
  64.  
  65.  
  66. /*
  67.  * tc.disc.c
  68.  */
  69. extern    int          setdisc    __P((int));
  70. extern    int          resetdisc    __P((int));
  71.  
  72. /*
  73.  * tc.func.c
  74.  */
  75. extern    Char         *expand_lex    __P((Char *, int, struct wordent *, 
  76.                          int, int));
  77. extern    Char         *sprlex    __P((Char *, struct wordent *));
  78. extern    void          Itoa        __P((int, Char *));
  79. extern    void          dolist    __P((Char **, struct command *));
  80. extern    void          dotelltc    __P((Char **, struct command *));
  81. extern    void          doechotc    __P((Char **, struct command *));
  82. extern    void          dosettc    __P((Char **, struct command *));
  83. extern    void          dowhich    __P((Char **, struct command *));
  84. extern    struct process     *find_stop_ed    __P((void));
  85. extern    void          fg_proc_entry    __P((struct process *));
  86. extern    sigret_t      alrmcatch    __P((int));
  87. extern    void          precmd    __P((void));
  88. extern    void          cwd_cmd    __P((void));
  89. extern    void          beep_cmd    __P((void));
  90. extern    void          period_cmd    __P((void));
  91. extern    void          aliasrun    __P((int, Char *, Char *));
  92. extern    void          setalarm    __P((int));
  93. extern    void          rmstar    __P((struct wordent *));
  94. extern    void          continue_jobs    __P((struct wordent *));
  95. extern    Char         *gettilde    __P((Char *));
  96. extern    Char         *getusername    __P((Char **));
  97. extern    void          doaliases    __P((Char **, struct command *));
  98. extern    void          shlvl        __P((int));
  99.  
  100.  
  101. /*
  102.  * tc.os.c
  103.  */
  104. #ifdef MACH
  105. extern    void          dosetpath    __P((Char **, struct command *));
  106. #endif
  107. #ifdef TCF
  108. extern    void          dogetxvers    __P((Char **, struct command *));
  109. extern    void          dosetxvers    __P((Char **, struct command *));
  110. extern    void          dogetspath    __P((Char **, struct command *));
  111. extern    void          dosetspath    __P((Char **, struct command *));
  112. extern    char         *sitename    __P((pid_t));
  113. extern    void          domigrate    __P((Char **, struct command *));
  114. #endif
  115. #ifdef WARP
  116. extern    void           dowarp    __P((Char **, struct command *));
  117. #endif
  118. #ifdef masscomp
  119. extern    void          douniverse    __P((Char **, struct command *));
  120. #endif
  121. #ifdef _SEQUENT_
  122. extern    void           pr_stat_sub    __P((struct process_stats *, 
  123.                          struct process_stats *, 
  124.                          struct process_stats *));
  125. #endif
  126. #ifdef NEEDtcgetpgrp
  127. extern    int           xtcgetpgrp    __P((int));
  128. extern    int          xtcsetpgrp    __P((int, int));
  129. # undef tcgetpgrp
  130. # define tcgetpgrp(a)       xtcgetpgrp(a)
  131. # undef tcsetpgrp
  132. # define tcsetpgrp(a, b)  xtcsetpgrp(a, b)
  133. #endif
  134. #ifdef YPBUGS
  135. extern    void           fix_yp_bugs    __P((void));
  136. #endif
  137. extern    void           osinit    __P((void));
  138. #ifdef NEEDgetwd
  139. extern    char         *xgetwd    __P((char *));
  140. #undef getwd
  141. #define getwd(a) xgetwd(a)
  142. #endif
  143. #ifdef NEEDgethostname
  144. extern    int           xgethostname    __P((char *, int));
  145. #undef gethostname
  146. #define gethostname(a, b) xgethostname(a, b)
  147. #endif
  148. #ifdef NEEDstrerror
  149. extern    char          *xstrerror    __P((int));
  150. #undef strerror
  151. #define strerror(a)       xstrerror(a)
  152. #endif
  153. #ifdef apollo
  154. extern    void          doinlib    __P((Char **, struct command *));
  155. extern    void          dover        __P((Char **, struct command *));
  156. extern    void          dorootnode    __P((Char **, struct command *));
  157. extern    int          getv        __P((Char *));
  158. #endif
  159.  
  160.  
  161. /*
  162.  * tc.printf.h
  163.  */
  164. extern    void          xprintf    __P((char *, ...));
  165. extern    void          xsprintf    __P((char *, char *, ...));
  166. extern    void          xvprintf    __P((char *, va_list));
  167. extern    void          xvsprintf    __P((char *, char *, va_list));
  168.  
  169. /*
  170.  * tc.prompt.c
  171.  */
  172. extern    void          printprompt    __P((int, Char *));
  173.  
  174. /*
  175.  * tc.sched.c
  176.  */
  177. extern    time_t          sched_next    __P((void));
  178. extern    void          dosched    __P((Char **, struct command *));
  179. extern    void          sched_run    __P((void));
  180.  
  181. /*
  182.  * tc.sig.c
  183.  */
  184. #ifndef BSDSIGS
  185. # if SVID < 3 || defined(UNIXPC)
  186. extern    sigret_t    (*sigset    __P((int, sigret_t (*)(int)))) ();
  187. extern    void          sigrelse    __P((int));
  188. extern    void          sighold    __P((int));
  189. extern    void          sigignore    __P((int));
  190. extern    void           sigpause    __P((int));
  191. # endif
  192. # ifdef SXA
  193. extern    void           sigpause    __P((int));
  194. # endif
  195. extern    pid_t           ourwait    __P((int *));
  196. #endif
  197. #ifdef NEEDsignal
  198. extern    sigret_t    (*xsignal    __P((int, sigret_t (*)(int)))) ();
  199. #define signal(a, b)      xsignal(a, b)
  200. #endif
  201. #ifdef _SEQUENT_
  202. extern    sigmask_t      sigsetmask    __P((sigmask_t));
  203. extern    sigmask_t      sigblock    __P((sigmask_t));
  204. extern    void          bsd_sigpause    __P((sigmask_t));
  205. #endif
  206. #ifdef SIGSYNCH
  207. extern    sigret_t      synch_handler    __P((int));
  208. #endif
  209.  
  210.  
  211.  
  212.  
  213. /*
  214.  * tc.str.c:
  215.  */
  216. #ifdef SHORT_STRINGS
  217. extern    Char         *s_strchr    __P((Char *, int));
  218. extern    Char         *s_strrchr    __P((Char *, int));
  219. extern    Char         *s_strcat    __P((Char *, Char *));
  220. #ifdef NOTUSED
  221. extern    Char         *s_strncat    __P((Char *, Char *, size_t));
  222. #endif
  223. extern    Char         *s_strcpy    __P((Char *, Char *));
  224. extern    Char         *s_strncpy    __P((Char *, Char *, size_t));
  225. extern    Char         *s_strspl    __P((Char *, Char *));
  226. extern    size_t          s_strlen    __P((Char *));
  227. extern    int          s_strcmp    __P((Char *, Char *));
  228. extern    int          s_strncmp    __P((Char *, Char *, size_t));
  229. extern    Char         *s_strsave    __P((Char *));
  230. extern    Char         *s_strend    __P((Char *));
  231. extern    Char         *s_strstr    __P((Char *, Char *));
  232. extern    Char         *str2short    __P((char *));
  233. extern    Char        **blk2short    __P((char **));
  234. extern    char         *short2str    __P((Char *));
  235. extern    char        **short2blk    __P((Char **));
  236. #endif
  237. extern    char         *short2qstr    __P((Char *));
  238.  
  239.  
  240. /*
  241.  * tc.vers.h:
  242.  */
  243. extern    void          fix_version    __P((void));
  244. extern    Char         *gethosttype    __P((void));
  245.  
  246. /*
  247.  * tc.who.c
  248.  */
  249. extern    void          initwatch    __P((void));
  250. extern    void          resetwatch    __P((void));
  251. extern    void          watch_login    __P((void));
  252. extern    void          dolog        __P((Char **, struct command *));
  253.  
  254. #endif                /* _h_tc_decls */
  255.